package com.sgmw.sales.tool.kong.sign.headers;

import com.sgmw.sales.tool.kong.sign.utils.Md5Util;

public class SignHeaderContentMd5 implements RequestHeader{
	private String content;
	private String contentMD5;
	
	public SignHeaderContentMd5(String content) {
		this.content = content;
	}

//	@Override
//	public String getSignString() {
//		String contentMD5 = Md5Util.md5(content);
//		String signString = getName() + ": " + contentMD5;
//		return signString;
//	}
	
	@Override
	public String getName() {
		return "Content-md5";
	}

	@Override
	public String getValue() {
		String contentMD5 = Md5Util.md5(content);
		contentMD5 = getName() + ": " + contentMD5;
		return contentMD5;
	}

	@Override
	public String toString() {
		return getName() + ": "+contentMD5;
	}
	
	
}
